package com.cxria.pattern.adaptation

class OuterUserInfo extends OuterUser implements IUserInfo{

    private baseInfo = userBaseInfo
    private homeInfo = userHomeInfo
    private officeInfo = userOfficeInfo

    @Override
    String getUsername() {
        baseInfo['userName']
    }

    @Override
    String getHomeAddress() {
        homeInfo['homeAddress']
    }

    @Override
    String getMobileNumber() {
        baseInfo['mobileNumber']
    }

    @Override
    String getOfficeTelNumber() {
        officeInfo['officeTelNumber']
    }

    @Override
    String getJobPosition() {
        officeInfo['jobPosition']
    }

    @Override
    String getHomeTelNumber() {
        homeInfo['homeTelNumber']
    }

}
